package com.coolgor.axnut.entity.lordsee;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * 扫描结果实体类
 * @author CoolGor
 */
public class ScanIPResult {

    //记录ID
    @JsonProperty("rec_id")
    private Long recordID;
    //IP
    @JsonProperty("ip")
    private String ip;
    //主机名
    @JsonProperty("hostname")
    private String hostname;
    //主机状态
    @JsonProperty("status")
    private String status;
    //扫描时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty("scan_time")
    private Date scanTime;

    public Long getRecordID() {
        return recordID;
    }

    public void setRecordID(Long recordID) {
        this.recordID = recordID;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getScanTime() {
        return scanTime;
    }

    public void setScanTime(Date scanTime) {
        this.scanTime = scanTime;
    }
}